package com.hall.service;

import com.hall.dao.BokeUserMapper;
import com.hall.pojo.AppointmentUser;
import com.hall.pojo.common.Result;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class BokeUserServiceImpl implements BokeUserService{
    @Autowired
    private BokeUserMapper bokeUserMapper;
    public void setBokeUserMapper(BokeUserMapper bokeUserMapper) {
    }
    @Override
    public Result<List<AppointmentUser>> selectAppUser(String id) {
        List<AppointmentUser> au = bokeUserMapper.selectAppUser(id);
        return au==null?Result.error("请求失败"):Result.success(au,"请求成功");
    }
    @Override
    public int selectMeetUserRemarks(String meetId, String userId) {
       return bokeUserMapper.selectMeetUserRemarks(meetId,userId);
    }
}
